import getpass
number = int(getpass.getpass("请输入数字："))
count = 0
while True:
    if count < 3:
        guess = int(input("请输入你猜测的数字："))
        if number == guess:
            print("猜对了")
            break
        elif number > guess:
            print("小了")
        else:
            print("大了")
    else:
        print("都没有猜对")
        break
    count = count + 1